<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 <%@ include file="../common.inc" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>无标题文档</title>
<link href="./css/style1.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
	function save(){
		document.editViewframe.action = "./role.do?action=addUserViewFunPosition";
		document.editViewframe.target = "main";
		document.editViewframe.submit();
		}	

	function initialisation(){
		<c:forEach items="${userviewfuns}" var="item">
		var objSelect = document.getElementById("viewId"+${item.positionId});
		for(var i=0;i<objSelect.options.length;i++)
	     {
	         if(objSelect.options[i].value == ${item.viewMagId})
	         {
	             objSelect.options[i].selected = true;
	             break;
	         }
	     }      
			
		</c:forEach>	
		}
</script>
</head>
<body onload="initialisation ()">
<form action="" name="editViewframe" method="post">
<table class="table_frame3">
		<tr>
			<td align="left"><a href="javascript:save()">保存</a></td>
			<td align="right"><a href="javascript:history.go(-1)">后退</a></td>
		</tr>
		<tr>
			<td width="55%" valign="top">
				<table class="table_main">
					<tr>
						<td class="title" ><img id="img11" src="./images/main_down.gif">&nbsp;<select  name="viewId1">
																																<option value="0">--------请选择--------</option>
																																<c:forEach items="${viewfuns}" var="item">
																																<option value="${item.viewMagId }">${item.viewName }</option>
																																</c:forEach>
																																
																														</select></td>
						<!--<td style="text-align: right;" class="title"><img style="cursor: hand;" src="./images/more.gif" onclick="newsNotice()">&nbsp;</td>
					--></tr>
					
				</table>
			</td>
			<td class="45%" valign="top">
				<table class="table_main">
					<tr>
						<td class="title" ><img id="img12" src="./images/main_down.gif">&nbsp;<select  name="viewId5">
																																<option value="0">--------请选择--------</option>
																																<c:forEach items="${viewfuns}" var="item">
																																<option value="${item.viewMagId }">${item.viewName }</option>
																																</c:forEach>
																														</select></td>
						<!-- 
						<td style="text-align: right;" class="title"><img src="./images/more.gif">&nbsp;</td>
						 -->
					</tr>
					
				</table>
			</td>
		</tr>
		<tr>
			<td width="55%" valign="top">
				<table class="table_main">
					<tr>
						<td class="title" ><img id="img21" src="./images/main_down.gif">&nbsp;<select  name="viewId2">
																																<option value="0">--------请选择--------</option>
																																<c:forEach items="${viewfuns}" var="item">
																																<option value="${item.viewMagId }">${item.viewName }</option>
																																</c:forEach>
																														</select></td>
						<!--<td style="text-align: right;" class="title"><img style="cursor: hand;" src="./images/more.gif" onclick="auditDynamic()">&nbsp;</td>
					--></tr>
					
				</table>
			</td>
			<td class="45%" valign="top">
				<table class="table_main">
					<tr>
						<td class="title" ><img id="img22" src="./images/main_down.gif">&nbsp;<select  name="viewId6">
																																<option value="0">--------请选择--------</option>
																																<c:forEach items="${viewfuns}" var="item">
																																<option value="${item.viewMagId }">${item.viewName }</option>
																																</c:forEach>
																														</select></td>
						<!--<td style="text-align: right;" class="title"><img style="cursor: hand;" src="./images/more.gif" onclick="scheduleManage()">&nbsp;</td>
					--></tr>
					
				</table>
			</td>
		</tr>
		<tr>
			<td width="55%" valign="top">
				<table class="table_main">
					<tr>
						<td class="title" ><img id="img31" src="./images/main_down.gif">&nbsp;<select  name="viewId3">
																																<option value="0">--------请选择--------</option>
																																<c:forEach items="${viewfuns}" var="item">
																																<option value="${item.viewMagId }">${item.viewName }</option>
																																</c:forEach>
																														</select></td>
						<!-- 
						<td style="text-align: right;" class="title"><img src="./images/more.gif">&nbsp;</td>
						 -->
					</tr>
					
				</table>
			</td>
			<td class="45%" valign="top">
				<table class="table_main">
					<tr>
						<td class="title" ><img id="img32" src="./images/main_down.gif">&nbsp;<select  name="viewId7">
																																<option value="0">--------请选择--------</option>
																																<c:forEach items="${viewfuns}" var="item">
																																<option value="${item.viewMagId }">${item.viewName }</option>
																																</c:forEach>
																														</select></td>
						<!-- 
						<td style="text-align: right;" class="title"><img src="./images/more.gif" onclick="">&nbsp;</td>
						 -->
					</tr>
					
				</table>
			</td>
		</tr>
		<tr>
			<td width="55%" valign="top">
				<table class="table_main">
					<tr>
						<td class="title" ><img id="img41" src="./images/main_down.gif">&nbsp;<select  name="viewId4">
																																<option value="0">--------请选择--------</option>
																																<c:forEach items="${viewfuns}" var="item">
																																<option value="${item.viewMagId }">${item.viewName }</option>
																																</c:forEach>
																														</select></td>
						<!--<td style="text-align: right;" class="title"><img style="cursor: hand;" src="./images/more.gif" onclick="customerManage()">&nbsp;</td>
					--></tr>
					
				</table>
			</td>
			<td class="45%" valign="top">
				<table class="table_main">
					<tr>
						<td class="title" ><img id="img42" src="./images/main_down.gif">&nbsp;<select  name="viewId8">
																																<option value="0">--------请选择--------</option>
																																<c:forEach items="${viewfuns}" var="item">
																																<option value="${item.viewMagId }">${item.viewName }</option>
																																</c:forEach>
																														</select></td>
						<!--<td style="text-align: right;" class="title"><img style="cursor: hand;" src="./images/more.gif" onclick="systemRemind()">&nbsp;</td>
					--></tr>
					
				</table>
			</td>
		</tr>
		<tr>
			<td>
			
			</td>
		</tr>
	</table>
</form>
</body>
</html>
